package com.ws.lv.mapper;

import com.ws.lv.bean.Image;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface ImageMapper {
    int insertImage(Image image);

    List<Image> selectImages (@Param("route_name") String route_name,@Param("image_state") Integer image_state);

    int updateImageDisplay(int image_id);

    int updateImageHide(int image_id);

    int deleteImages(ArrayList<Integer> image_ids);

    Image selectImageById(int route_id);

    int updateImage(Image image);

    List<Image> selectImageByRouteId(int route_id);

    int deleteImageByRouteIds(ArrayList<Integer> route_ids);

    List<Image> selectImagesByRouteId(int route_id);

}
